var lanternCtrl = require('./controllers/lantern');

module.exports = {
  bind:function(router){
      router.get('/lantern/index',lanternCtrl.index);
      //router.get('/lantern/song',lanternCtrl.song);
      //router.get('/lantern/yao',lanternCtrl.yao);
      //router.get('/lantern/fromyao',lanternCtrl.fromyao);
      router.get('/lantern/test',lanternCtrl.index);


      /**
       * 活动结束，替换所有路由
       */
      router.get('/lantern/give_reward',lanternCtrl.index);
       router.get('/lantern/yao_card',lanternCtrl.index);

       router.get('/lantern/get3CardRandom',lanternCtrl.index);
       router.get('/lantern/shareCallback',lanternCtrl.index);
       router.get('/lantern/yaoShareCallback',lanternCtrl.index);
       //发放和接收接口
       router.get('/lantern/yao_get',lanternCtrl.index);
       router.get('/lantern/song_get',lanternCtrl.index);
       //创建分享链接
       router.get('/lantern/give/:reward/:reward_name',lanternCtrl.index);
       router.get('/lantern/seek/:reward/:reward_name',lanternCtrl.index);
       //分享链接
       router.get('/lantern/fromsong/:card_id',lanternCtrl.index);
       router.get('/lantern/fromyao/:id',lanternCtrl.index);

       router.get('/lantern/getCurrentReward',lanternCtrl.index);

      //接口
      /*router.get('/lantern/give_reward',lanternCtrl.giveReward);
      router.get('/lantern/yao_card',lanternCtrl.yaoCard);

      router.get('/lantern/get3CardRandom',lanternCtrl.get3CardRandom);
      router.get('/lantern/shareCallback',lanternCtrl.shareCallback);
      router.get('/lantern/yaoShareCallback',lanternCtrl.yaoShareCallback);
      //发放和接收接口
      router.get('/lantern/yao_get',lanternCtrl.yao_get);
      router.get('/lantern/song_get',lanternCtrl.song_get);
      //创建分享链接
      router.get('/lantern/give/:reward/:reward_name',lanternCtrl.giveCard);
      router.get('/lantern/seek/:reward/:reward_name',lanternCtrl.yaoCard);
      //分享链接
      router.get('/lantern/fromsong/:card_id',lanternCtrl.fromsong);
      router.get('/lantern/fromyao/:id',lanternCtrl.fromyao_);

      router.get('/lantern/getCurrentReward',lanternCtrl.getCurrentReward);
*/

      //last give rewards
      /*router.get('/lantern/get_zsm_info',lanternCtrl.get_zsm_info);
      router.get('/lantern/give_apple',lanternCtrl.give_apple);
      router.get('/lantern/give_amount',lanternCtrl.give_amount);
      router.get('/lantern/give_coupon',lanternCtrl.give_coupon);
      router.get('/lantern/give_coupon2',lanternCtrl.give_coupon2);*/

  }
};